fix the build

build is fixed temporarily so that reference counting can be added
first.