Compiler gets to 95%
Linking CXX executable oregon-core
Then
/usr/bin/LD: cannot find -lthreads
/usr/bin/LD: cannot find -lvalgrind
Collect2: error: I'd return 1 exit status

After spending time fixing jemalloc issues now this

If anyone has a fix please help I have tryed googling the problem but came up with no fix.

Show a normal error log. Write what you did.