Fix compilation with mingw.org headers

-std=c++11 sets __STRICT_ANSI__, and the stdio.h from mingw.org doesn't
declare e.g. _fileno then.

Change-Id: Iaa29e4f2b04bcae73b8706aff1be83913bcf6a52
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>