avoid warning when using shared memory of type vec

 - create uninitialized shared memory
 - cast pointers to vec
 - avoid warning

fixes #7