make ANSI compliant and fixed makefiles