[sqlite] fix build of shared libraries