Fix OSX headers (thanks to Mark Sanvitale)