fix build scripts.