Author: Max Derhak, Rohit Patil

Mac OS X support, contrib author: Joseph Goldstone
