class library: fix curvelin

fixes #902

Signed-off-by: Tim Blechmann <tim@klingt.org>