Compile on osx

Re-paching the makefile seems like the only way to make this compile reliably on osx