I belief the sample was using the complete mozilla implementation to get the header files. Now since we have gecko sdk all the internal linkage will have to be migrated to use frozen linkage because internal linkage is not supported by gecko sdk 3.6.
So in my case i changed nsAString.h to nsStringAPI.h and followed other guidelines