Dependency fixes, supporting #86
Test and fix for #85