SetThisExecutablePath() now ignores argv[0] when it is able. Tested on Linux.
Fix up build failure on Windows.
Fixed bad cast.
Try again for OS X.
Merge pull request #57 from ned14/MAID-416

Maid 416