Fixes to build JSCOnly on macOS