fix for phigrape and cuda libs