More details about your env needed - I have firefox52-52.9.0nb43 locally build on macppc -current from early June and the only changes to the Makefile were recursive revbumps that should not affect that part of the build.
Also: https://www.klos.com/~john/firefox52.logIt seems to have issues on two different 9.99.98/amd64 systems, but compiles fine on 9.99.96/Alpha and 9.2/amd64.
John