Fix creation of position independent executables (-fPIE -pie).
There were two bugs here. First, -pie was not passed to ld. Second,
non-relocatable versions of three *crt*.o archives were used in the pie
Additionally, link with crtbeginT.o in the -static case.
Shift style towards that of the Linux code since much of the new login was
cribbed from it.
Reported by: jonathan