OSX/Mono compatibility