[jhc] darcs patch: Add foreign import "dynamic" support