Split the interfaces by using three different defines: Used by gLExec: #define LCMAPS_RETURN_ACCOUNT_FROM_PEM Use by Without GSI: #define LCMAPS_RETURN_POOLINDEX_WITHOUT_GSI #define LCMAPS_RETURN_ACCOUNT_WITHOUT_GSI