Added more build tests, modified command line parameter handling.