Added build scripts from Derek
Updated threads.h to trigger thread safe useage of fparser