Fixed HQL-delete test
Fixed C++11 compile errors