Use better way of getting unmanaged thunks.