fix ushort to use standard c datatype