Fix more warnings.
Fix naming conflict.
Fix GCC build again.
Merge remote-tracking branch 'remotes/upstream/master' into fixes

Conflicts:
	src/Map.cpp
Make sure compute_path/line_of_movement destination is inside map

Fixes #827
Merge pull request #831 from dorkster/bugfixes

Make sure compute_path/line_of_movement destination is inside map
Merge pull request #822 from igorko/fixes

Fix more warnings.