Fixed cross-compile build problems in Rakefile.