fix build and distcheck with autools
3 files changed