fixed compilation for OS X

This is needed to compile on OS X. It defines EXIT_FAILURE.