changed Metaspace/Connection classes to avoid errors when no AS lib on
classpath