fixed virtual destruction error which stopped it from compiling on g++4.6