Minor OSX platform fixes