Calculate LIB_SIZE (now libs_size) automatically