fixed linux/mac build script