V1.3 dev fixes

some bugfixes to make the project compile under windows with vs 2012+