Improved C++ construction. Removed broken java caches for compiler types