added "-std=c++11" for libsrt
moved static stack into stack.h and used it from tree