fixed build script for both Linux and Windows