fixed build on node v10
build warnings fix
Merge pull request #7 from denzp/master

fixed build on node v10 + build warnings fix