Updated build script for Linux compatibility