Change detection to Win32 to work in gcc

Signed-off-by: Emiliano Firmino <emiliano.firmino@gmail.com>