allow different rpath on linux
Fix hero team construction crash; Fix mouse event handling