msn: initialize variable to silence covertiy
msn: fix memory leak
core: Always use delayed erase in MainLoop

If removeCallback() was called from the handler of another file event,
the iterator in run() could become broken.

Fixes #40
Merge branch '1.8-stable'