don't raise if error was before and better debug messages
Bugfix: set CC flags only if not set before