compression function externalized to a dynamic lib to prepare future JIT
compilation