added apple ifdefs for includes