Fix bug #137: unable to store snapshots of live view on MacOS X

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>