fix for headless compile