Fix "ld: cannot find -lstubs" build error