Error header inclusion in the error code file - fix.

Proper error header inclusion in the error code file (fix), and weak declarations removal from code files (redundant).