make sure the class map has been built when loading a package