Add flags to build script
Merge pull request #3208 from openscholar/update-build

Add flags to build script