Fix qt unit test build on OSX