Fix create library file under msys with AR (couldn't pass too many files in command line)
Fix create pthread library under msys
Various fixes after moving to msys