port check_zlib from audacity

Signed-off-by: Cristian Stoica <crististm@gmail.com>
making progress towards local zlib (we need LIBS=-lz)
add autogenerated files

Signed-off-by: Cristian Stoica <crististm@gmail.com>