Contribution

A few fix for you (now working on x64 if gcc supports 32bits cross compilation - please test it on your side before accepting this request)