update colvars makefile dependencies
(cherry picked from commit df99a85930a8e77f6e7741b334c2e61b557c1b28)