Open kernel file with binary mode

Fixes read problems on Windows. Thanks Timo Strunk for the hint.
Return NULL if programs.cl cannot be opened