Handle some TODOs, bugfixes, and compiler warnings.

Signed-off-by: nppangband <nppangbanddev@verizon.net>