Add protection for missing header on mac