Adds forwards declarations in headers and includes all headers in sources, even if they are found by transitive includes.
Also remove prefixes and trailing new lines in err() and die()