buildenv/win32-static: factor our common buildenv code into common.bash.