slice error on macosx/clang requires extern definition

Signed-off-by: Ekrem Aksoy <ekrem.aksoy@gmail.com>