make qgis_app a shared library and fix some more stl warnings with msvc