fix build in clean environment