compile error on mac osx. Just #ifdef for now, but should use Boost or something to make it cross-platform. It keeps happening