fix compile error on Indigo

This patch will fix compiling issue related to Indigo (see http://wiki.ros.org/indigo/Migration).