moved shd compilation to c++, might fix the windows compilation issues