fix compile on 64-bit and add option to cross compile to 32-bit. NOTE: svgalib broken on 64-bit