Add new interface to allow creation of file with lib_t type