build system reworked to have one library