Accidentally broke the configure script while testing.
Added some #ifdefs necessary for Apple.