Use package dependencies

Fix #3.