Adding error message for not being able to compile libSDL2 if pthread is missing. Also refactored out finding lib, inc, dlls so that we can iterate over an array for lib and lib64 on unix platforms that are 64bit.
Fixed file temp usage