A few workarounds to fix an intel bug (when allocating intent(in) pointers), which only manifests itself on an optimized build.