Fixes required to build PyStan 2.4.0 on Windows