fix build without libsml