fix for lib build