Fix 386 and arm cross-compile

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Merge pull request #111 from tianon/fix-cross

Fix 386 and arm cross-compile