Corrected all compilation errors.

All sources and test suite now compile without error. Now to fix the
failed tests... ;-)