Testing/tweaks from kirby@ and bentley@ ok kirby@
Use gcc-4.6 due to a compiler bug with gcc-4.2 ok benoit@
ok benoit@