make sure getw/putw agree with prototypes by defining _GNU_SOURCE