Define function prototypes properly.
Don't catch stderr when DEBUG is on.