Miscellaneous utilities including command line processing, math functions, lexing, logging.