gcc porting fixes.