Add library block loading interface

Signed-off-by: Michael Buesch <m@bues.ch>
lib-selection: Add sanity checks

Signed-off-by: Michael Buesch <m@bues.ch>