Some work on getting the compiled CUDA library to play nicely with GCC/some misc interface work.