Prepare for v0.19.0 based version.
Make compilable again after switching to v0.19.0

To achieve that, adapt when easy or remove some functions.
Index is to rewrite completely.