Converted libiMobileDevice errors to negative numbers to match error reporting.