[build] Fix build on scratchbox2.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>