Hi Dario,
thanks a lot for your patch.
I would like to suggest not making it a compile time option but a runtime option. This would get rid of the #ifdefs and be much more elegant. You simply configure in the config file if you want to use gpsd or the raw device...