added a stub localizer for unit testing
Casting objc_msgSend() to fix arm64 crash
Extracted includes