fix build error after nvidia optimus code commit