[init] Improve support for Extension building by acknowledging CXXFLAGS; Sets -isysroot for macOS builds