update build.sh to build inplace, i.e., no platform specific copying needed anymore.