Isolating unix-only functionality with #ifdefs