only use xcpretty when it is available

## motivation

The library build process should not depend on 'xcpretty', but it should use it if it is available.