Define the WEXITSTATUS macro for systems that don't have it.