Restructure Makefile

Some sections in the file was a bit off, buildarch was specified in two places
and was not grouped together with compiler settings which the variable
affects.
Create command variable for uname

Uname was used in more than one place and the PATH variable affects in which
order uname is search for and with long PATH-variables that again increases
the number of stat calls.