Use GetLastError when ShellExecuteEx fails.
Replace ExitOnWin32Error with ExitWithLastError.
Merge pull request #50 from rseanhall/shelexec

Use GetLastError when ShellExecuteEx fails.