Fixed shared object deps and linux build