Fix some compiler warnings
configure: Fixed source control detection for git
Fixed double definition of LOCALEDIR
Merge pull request #473 from daschuer/warning_fix

Warning fix