bugfix: now it can compile on Mac OS X