added dist distcheck and install functionality to the build system