update for clang, c++11, gnustl, external static link