Added support for OS X systems.