Ugly fix for being compatible with superbuild