"text/plain" has default content type is more logical
add autotools and fix warnings