My JNI project links against 3 shared libraries: libogg, libvorbis and libtheora. On Windows everything works fine, and on Linux there are no errors when building my shared libr