fixed some g++ compile problems