Support Mac OS X

Bug 1012833 - Negatus should build on Mac OS X.

Bug 1012833 - Further review comments integrated.
Bug 1012855 - Files are being written with corrupt data.

Bug 1012855 - Further review feedback.
Fix indentation.
Bug 1012855 - Files are being written with corrupt data.

Bug 1012855 - Further review feedback.

Fix indentation.
Bug 1018233 - Get Negatus to work with Mac OS X.
Merge branch 'master' of github.com:sydvicious/Negatus

Conflicts:
	src/CommandEventHandler.cpp
	src/Shell.cpp
Accidentally overwrote original .gitignore entries.
Merge pull request #9 from sydvicious/master

Bugs 1012833 and 1012855