unify exit code comparison

Exit codes are handled as unsigned numbers on all platforms now.

Change-Id: I904fc71587070ea290ea08acf96ea46ccf78bb27
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>