I tried putting the #includes in the h file underneath the #define...but no luck. The first two errors are :
Line Location stl_algo.h:2991: error: no match for 'operator*' in '*__first1'
Line Location stl_algo.h:2991: error: no match for 'operator*' in '*__first1'