mono Mac OS X

Fix for Mono on Mac OSX