fixed some warnings for windows
minor buitification