Migrate to nan 1.1.0

Migrate to nan 1.1.0 for audreyt/node-webworker-threads#16,
and try to fix some tests.