wrapping libsndfile with SF module
migrated export-thread to sf