updated make.sh for c++11 support, and fixed bug in test