Changed define used with observer to extern.