Fixes for 32 / non arc / old runtime, crash fixes, and logic fixes.