winpthreads: check if __GNUC__ is defined to prevent -Wundef warning Signed-off-by: LIU Hao <lh_mouse@126.com>