Adding missing includes

The TestCpp sample project fails to compile. This commit adds the missing includes for it (pthread and GL).