Fix Windows build of Osd OMP CPU kernel

note: we #include <vector> instead malloc.h for portability