handleError() no longer triggers exit()
Force default build type (Debug) and enable warnings for gcc and clang
Added gitignore
Fix warnings.