[reafac] added layer declaration pick during compilation
[build][refac] upgraded build system and layers implementation so it works with previously written layers
[fix] removed posix specific headers
[fix] removing unistd
Merge pull request #60 from xively/upgrade-io-layers

Upgrade io layers