library/: prepare for user customization

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>