The problems here are similar to those described in #38859 and #39086, in that the GSCategories.h file has been removed from -base and the _LIBRARIES_DEPEND_UPON variable in the GNUmakefile is redundant. The patch here lets the app build for Mac OS X.