Fix backwards compatibility issue in ZOpt.m