replace echo with printf, add autotools build function.
add Clang ABI patch for GCC 4.7+ built libstdc++ ABI compatibility