more ifdefs for Mac