Fix CXXFLAGS and remove flags declaration from zlib-post scripts