Fix `CL_INVALID_PLATFORM` error during initialization.

Which happen with NVIDIA drivers.
Merge pull request #2 from aloiscochard/master

Fix `CL_INVALID_PLATFORM` error during initialization.