fix incorrect file build order for generated files
change file name suffix for Windows related file to "w"/"win" as counter part of "2"/"os2" suffix
do necessary change in header references