Fix segfaults in libshogun GP examples
Merge pull request #976 from votjakovr/develop

Fix segfaults in libshogun GP examples