Fixed build error on linux

Revewied by Bryan Higgins <bhiggins@blackberry.com>