Fix mingw build.

Change-Id: I9b2ea46a38e490ddc1bdc3879e9ca10e9442a5cc
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>