Added support for .dylib loading for running on OS X