switch to building shared libs