adding default constructor to registry impl and fix some build issues