Both apps and the CUDPP library need to use libstdc++ when compiling for OS X Mavericks