Converted to cpp files because the VS c++ compiler is better than it's c.
Fixed compiling destin.cpp
Fixed most compile issues. Still need to fix link issues.