Use C++11's std::to_string().
Use C++11's type-safe enum structs for:

- Device
- Language
- Texture
Link against system libs reported by llvm.
Fix compile error.
Cleanup compiler flags etc.
Use -Xcompiler for nvcc only.