Minor changes to compile on OS X

Thanks to @sneakernets.