Added files to support destruction for APEX

These files are essential to use APEX destruction along with some CUDA
support.