Fixed some minor problems with Windows version.

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