Now compiling on OSX, but buggy on virtual machine at least