Fix libs and link sample