Made the code ANSI (C89) compatible

Also removed CVS log markers from the source code