windows: Fix ReadConsole hang on CloseHandle

Fixes NodeJS test-regress-GH-746.js and test-stdout-close-unref.js unit tests by sending a return key stroke prior to closing the handle. This forces ReadConsole to exit and allows the IO operation to complete.
windows, build: add additional linker dependencies

fixed system library dependency so that unit tests would build from vcbuild.bat