Apply minor fixes patch [2727286] by kotk, minus the sqldbm.h type

changes (as I have no way of testing them on multiple platforms).

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9615 c06c8d41-db1a-0410-9941-cceddc491573

Created by  dolorous  on April 17, 2009
EC7OCZYJUMHG4F3NBBU6V2CHF3JFOAL4UPME5YDPDAUEAGUKJOIAC
Change contents