Fix building with compression, adding forwarding headers for applications