Add nano layer stuff for semaphores.
Merge branch 'master' of git://purkki/picoos-oo.git