fix a bug. zeroObject() was called in releaseObject()
fix comile errors
fix compile errors
make destructor virtual and fix compiling errors with g++
Merge pull request #31 from norihiro-w/fix-gnu-build-errors

Fix gnu build errors