Fix path based dependencies. See #282 and #253.
Remove unused prototype.