Fix for #628

Fix for issue #628 (crash with too many professions)

Also includes a minor tweak to the MSVC project files to ignore some warnings (because I forgot to put it in a separate branch).