Fix "out-of-tree" build (e.g. make distcheck).