Changes to build with parlib and upthread
Updated upthread_test to be in line with Akaros's