Fixes to resetting teleporting agents if something goes wrong.
Update prebuild files. Should compile under linux again.