fixed deprecation warnings for v8-3.21
Merge pull request #19 from whoozle/devel

fixed deprecation warnings for v8-3.21