Fixed undefined defines errors.