Fixes bugs from wrapping in Tailspin. Removes adding functions to built-in prototypes. Removes dead code from definitions.