use G_OS_WIN32 guard
use DEBUG macro
include needed header
use DEBUG macro
add G_OS_WIN32 guard
include needed header
remove needless variables