library interposition for OSX