Fix OSX compatibility. There's no ldconfig on OSX.