Various fix,start from original code
Merge pull request #16 from tehnick/fix-static-lib-in-windows Fix static library for MS Windows (for builds using MinGW)
Merge pull request #16 from tehnick/fix-static-lib-in-windows Fix static library for MS Windows (for builds using MinGW)