fix to make xml2 linking posix compilant

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@913 c0027639-9190-0b57-01eb-f09a03790dae
fixed some long standing mem leaks in ModelGen and NOM

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@914 c0027639-9190-0b57-01eb-f09a03790dae
Merge branch 'git-refactor-modelgen' of github.com:AndySomogyi/roadrunner into git-refactor-modelgen

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@933 c0027639-9190-0b57-01eb-f09a03790dae