fix compile of l2cap/rfcomm-name examples
separate platform specific code and ports for a particular setup