make it build with clang and link test-integration with Cocoa