29 windows build support

Fix build errors on Windows.