Don't forget to enable thread support in config/Makefile