the build seems to forget to link some files in shared mode...