remove Clang as default compiler for the project

Clang version 3.2 has problem to compile the code on debian/ubuntu.
fix gcc pedantic errors
fix debian cmake problem with -fPIC