Add optimizeHMD flag to oculus example