runtime function overriding for Mac OS X
