lib win32: fix WinUtil.dll building for win32
lib linux: optimized building script for linux