fixing problem when building in isolation