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