Fix build for Ubuntu 13.04

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Merge pull request #125 from vogel/build-fixes

Fix build for Ubuntu 13.04