fix for bug #3219 (undefined reference in GPU samples)
Merge pull request #1375 from jet47:gpu-examples-build