* remove static linking for libgcc
* fix clang warnings