Add smallfiles support