Fixed 'undefined reference to __get_thread' errors.
Explicit cast to (struct pthread_internal_t *) to avoid warnings.
Merge branch 'n3vermind-master'

fixed undefined referece to '__get_thread'

thanks @n3vermind :)