Set up lcov and fixed a declaration warning
Added coverage related files to gitignore