QNX: Fix Compilation error and compiler warnings

Change-Id: I45df1d1e4a4ce42ee7eb1c7c566e6d7a9aeb8ec2
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>