Don't depend on that memcmp() have same return value on all platforms