Fix needs building check

Mac and iOS projects provide custom checks for NeedsBuilding so the check
has to be done using the project service extension chain.