orfeo: add external and optional lib support, fix some cmake modules