Changed lib order to fix Ubuntu compile error