Z_MIN not defined error