Make compile after recent V4 API changes

Change-Id: Ib14d670e51c256d52ad6c62a6091b470ed3c95e7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>