[PATCH 21.4] Auto detecting integer types and avoid using Motif for cygwin