Cooja platform fixes

This includes some warning fixes and adds ability to compile cooja nodes for slip-based code such as border-router example.
Resulting from checking issue #844