Initial attempt at OS X support.