add cglobal(sym, type=Void)::Ptr{type}. closes #1815