Fixed compilation error.

Fixed compilation error when using as external.