Coverity issues

Some memleaks, possible integer overflows.

It seems something is not ok with indentation in CCreatureHandler.cpp, but everything was ok in my IDE. Do you have any style guidelines?
Very likely. What looks weird is that we're closing newly loaded library. Shouldn't OS unload all symbols from this lib when such happens? Somebody should check docs for FreeLibrary/dlclose to see when they should be called - it is possible that they should be called only when library is no longer in use.

Although it may be a good idea to remade this pull (and re-run Coverity) since we had quite a lot of changes since this pull was created. Or at least rebase it to current git to see what has changed.