additional changes to support some new libcompat functions