fix for deprecation in Data.Foreign