Update the build script to detect OS and update readme instructions for building