Mark build script as specifically for OS X, re-order some gcc/g++ arguments for Linux compat.