OS X support

Suggested changes to support OS X.

Note that these suggestions cannot be applied as is since:
* prologue.mk was modified to use OS X 'md5' rather than Linux' 'md5sum'. This should be automatically configured.
* qake script changed to use locally installed gmake 4.0. This should depend on whether we chose to install it. Otherwise, continue using the system default.