tools/desktop: use fopen()/fwrite() instead of open()/write()
tools/desktop: use fopen()/fwrite() instead of open()/write()

Makes this part of the code compatible with MSVC.

gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl