lib: simplify main build file