Fix check for OS X framework.