Some old portable code for win32 dll & linux so using a class