Compile on mingw.

Change-Id: I2a9a85e88dffa62af57c8502533a0c131ecf1b8e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>