Fixed missing extern statement