lib: rename sim to lib