Add ./index.js to linking.
Fix minor lint warnings.