extern definition required for ruby client compilation on macosx

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