Made all function declarations explicit in core.y

This resolved numerous compiler warnings, but one still needs to be
figured out. Added *.err exclusion to .gitignore.