fixed gpu module compilation
Merge pull request #790 from jet47:fix-gpu-build