Fix dependencies for 'make check'