windows: add __GNUC_PREREQ macro for fixing build error

On MinGW environment, there is no feature.h which provides
__GNUC_PREREQ macro.