add missing WIFCONTINUED macro and improve WIFSIGNALED