add link flags to example [skip ci]