Only make convent a shared lib

fix shared lib. not found error. @invisibleroads can you check this? thanks!