Replaced incorrect #ifdef WIN32 with #if defined( __WIN_API__ )