Fix  compiler errors under Ubuntu64/Codeblocks