Fixed compile of worldeditor

Still crashes on startup, though.