Fix run
Fix compile option to enable shared lib