Porting Borland Turbo C source code to GNU gcc