1. - Fix android compiling error, replace UINT16_MAX by USHRT_MAX