Building prepair as a library works

Signed-off-by: Ken Arroyo Ohori <g.a.k.arroyoohori@tudelft.nl>