Fix some warnings (just the beginning here)
Fix creating 32bit binaries on Linux/amd64