Fix for building in a virtual env (not fully supported)