Enabled static linkage of libstdc++ and libgcc for apps (master, apply after develop)