fix build script errors