Fixed uninitialised variable warning
Fixed pthread linking on gcc
gcc header fixes