Switch to building shared libraries instead of static on Linux