fix some little issues on big endian platforms to resolve compiler warnings