Various compilation errors I encountered on Windows, macOS and Linux.
OpenMP is now handled in OTB itself with the OTB_USE_OPENMP setting.