Photon how to setup local compiling

Well,
It is not going so well… with the local compile setup on windows 7. Good I use a new laptop for this, and not my working spark laptop,…

When I read the make files this get’s my attention:

In the makefile: arm-tools, the compiler version is looked up:

# Check if the compiler version is the minimum required
arm_gcc_version:=$(shell $(CC) --version | head -n 1)
arm_gcc_version:=$(strip $(subst arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors),,$(arm_gcc_version)))
expected_version:=4.8.4

This results in an compiler error:

'head' is not recognized as an internal or external command,
operable program or batch file.

I tested this by entering the compiler command by hand:

C:\Particle\Toolchain\GCC-ARM>arm-none-eabi-gcc --version | head -n 1

And indeed it gives the error. My compiler version is 4.9.3, instead of 4.8.4.
Is this the source of the problem, or am I using the wrong compiler.
The make file does require 4.8.4 as a minimum version, ergo it should work, well it is reasonable to expect it to work…
I intalled everything with the toolchain installer, nice work @mumblepins, by the way!
So what to do?