add cmake/ninja linking option