Merge pull request #976 from votjakovr/develop

Fix segfaults in libshogun GP examples