Fix a few compile errors when cross compiling.

2 files changed