Add more includes, including pthread which will be used for threads