Put source files before libs

It seems that putting the libs first is wrong