Hmm, yeah, looke like the kernel version is a bit messed up Galileo apparently doesn't have 3.8.13 yet.
Not sure if you can sort this out after all these changes during experimenting, maybe the best way would be to start from scratch and just build the module using standard BSP.