remove debug message and fix compiler error on g++4.4