Fix undefined check failures.