GCC porting fixes.