CMake: include thread lib

- add FIND_PACKAGE(Threads REQUIRED)
- fix cuda_memtest build
- prepare PIConGPU for the same dependencies
Merge pull request #34 from ax3l/hotfix/cmake-thread

CMake: include thread lib