Remove compiler warnings

Change-Id: I12058d42678187de262b942cce868ac608387351
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>