Fix windows build

Add missing `win32.h` includes.
Remove unread variable.