Change library linking order to get VSP to build on Linux
Add pthreads on Linux