add compatible headers for mac