Some fixes for OW built/building with gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

- c++ linking problem that has to do with ordering of -lstdc++
- a false buffer overflow positive with GCC's new-fangled -DFORTIFY_SOURCE in the resource compiler
- broken wdmp arg handling