Make sounds for indicating a warning or error work

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Use GetLibGit2LastErr instead of GetGitLastErr

Signed-off-by: Sven Strickroth <email@cs-ware.de>