Added null-termination for kernel build log.
Fixed MSVS build.
Merge branch 'v5_0' of https://github.com/sgminer-dev/sgminer into v5_0