Link against right object file for libc++ in test build