Is it possible that it get's the StdString.h from the inclusion of profile.h (in which it is included)? Compiles without a problem on linux. After doing several years of Java development, my include file foo is a bit rusty..
I use CStdString because strLabel in GUIInfoManager (line 1758) where this function is used is also of type CStdString. I can change if necessary.