Change order of linker parameters to satisfy Ubuntu being weird
Further reordering in makefile