Make sure to link against _debug binaries when appropriate.