Fixed libtomcrypt build and build with old zlib (before 1.2.3.4)