Re-add forward declaration of _d_monitordelete
Fix extra case where goto skips initialization of variables
Merge pull request #965 from ibuclaw/fixgotoerror

Fix extra case where goto skips initialization of variables
Merge pull request #964 from ibuclaw/fixsepcomp

Re-add forward declaration of _d_monitordelete