Fix module declarations & package.json

Fixes https://github.com/gecko0307/dlib/issues/4