Build all references. Fix for issue #32.