Fix undefined warnings, hopefully.