Fix build failure on Ubuntu.
Fix test_compat_mac failure on non-mac OS X platform.
It requries an option 'mac-ext' to pass the test
since commit 95e0b3a4f.