added compile for main to build script