i686 cross-compile fixes