Add newlines and fix GCC errors