Fix compilation on mingw

Signed-off-by: Jens Georg <mail@jensge.org>