grok: Made grok 3.6 compatible and eliminated some warnings

Also added libgrok-dev dependency for travis build.