fix compiler errors for g++4.3