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>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I5040e8925ebcf73b353abd3b3e91f9603a086c49