Fixing numerous warnings and errors in manaplus
closes #121
closes #108
closes #100
closes #95