libsmf: fix build