Initial commit.
Make fmemopen only buildable on OSX.