Remove static linking to gtest.

Some bugs with static libc
Fixing linter. Move linter command to main Makefile.

Cleanup code to fine pass linter
Add main task in Makefile.
Deleted unused scripts in tools.
Travis, please use script from repo root.