Fix build failure when building without GSI. #3568