Sorry, I could have been a bit clearer. That's how it was before I updated to the latest `sql` branch and before these comments (and hence before I added in the includes you mentioned), in that state it compiled and appeared to work. From there, do `bundle update motion_model` and add the includes and you should get the `No headers to parse` error. 

I'm getting more problems with `motion-support`, it tells me to do the following:
```
WARNING: Automatic dependency detection does not work with motion-support. Turn it off in your Rakefile:

  app.detect_dependencies = false
```
which appears to introduce more problems. I'll play around for a bit longer.