Use make_unique
Adapted to newest libs
Adapted to newest libs
Suppress conversion warnings
Adapted to newest libs
Explicit lambda captures