reconfigured to compile libs as different files