Minor changes and fixes for Windows version.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>