fixed compilation for OS X 

This is needed to compile on OS X. It defines EXIT_FAILURE.
Merge pull request #4 from cvondrick/patch-1

fixed compilation for OS X