add WIN32_LEAN_AND_MEAN, constantize defines, add <cstdlib> for atoi and ensure null termination of the infobuffer
fix bug introduced by the switch to utf-16 when interacting with WIN32