Allow win32 cross compilation with cmake.

Signed-off-by: Rob Caelers <rob.caelers@gmail.com>