generic or specialized contribution?
if the contribution is for a specialty, ie only useful for a sector like survey or CNC the best is a plugin
if the contribution is generic, ie serve to improve LibreCAD for all sectors, then directly in LC souce code
look at the list of bugs or feature requests:
http://sourceforge.net/p/librecad/bugs/http://sourceforge.net/p/librecad/feature-requests/