Add -g flag to release version building for callgrind debugging.