Update j_shm.jl

getting rid of some more deprecation warnings
update pointer(T,x) to convert(Ptr{T},x)