Update to how externs work.

Signed-off-by: Henrik Porseland <henrik.porseland@b-reel.com>