You have to be very patient and meticulous about how you work. First, get something written for the Caanoo that will test your environment - maybe a very basic SDL game, first of all, and make sure it works properly. This way you will know your path ahead.
Then when you've got something you want to port, make sure it works on the original non-Caanoo environment first, by building it fresh from scratch, and observing the things it requires to run, and so on.
Then, do a few passes over the code to understand the general layout and flow for how the code works.
You must be able to put two feet on one side of the river, then one foot on each side, then both feet on the other side, before you can reliably hop back and forth between the two banks. I hope that metaphor works.