fix getfd move
more use of helpers fo rsyscalls
move newfn to helpers
do not close addtype functions over types
move addtype to shared