Correct include paths for socket.h, bluetooth.h, rfcomm.h?

I am trying to build an application using rfcomm sockets for bluetooth. Each of socket.h, bluetooth.h, rfcomm.h is found in many different locations under $LEGATO_ROOT. I haven’t been able to find the include path that doesn’t result in missing nested include files or multiple definitions of some C element. Has anyone done this? Thanks.