Merge branch 'feature/cmake' of https://github.com/stan-dev/stan into feature/cmake
Merge branch 'feature/cmake' of https://github.com/stan-dev/stan into feature/cmake
Merge branch 'feature/cmake' of https://github.com/stan-dev/stan into feature/cmake
Merge branch 'feature/cmake' of https://github.com/stan-dev/stan into feature/cmake
Merge branch 'feature/cmake' of https://github.com/stan-dev/stan into feature/cmake
statically link everything in the mingw case, including libwinpthread