Improve Qt build script for MacOS X

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