build: Fix cross-compilation errors.
Merge branch 'cross-compilation-fixes' of https://github.com/7k2/7kaa