macos: use the same code as linux to determine libc include path

this fixes .h file locating on macos 10.14
d9fe38789bAndrew Kelley committed on 11/6/2018, 10:59:44 PMparent63f636e
1 file changedLine totals unavailable