correct -lz order (fixes Ubuntu build)