Rearrange LDFLAGS, gcc linker is fussy about orders

Signed-off-by: Paul Warren <pwarren@Marly.local>
Makefile updates from Angus
-Wall and -Wextra errors cleared (except for an unused signum, not sure about that)