Change interfaces to THUNK_Alloc/Free slightly and make them non-static.