Sync with YCM commit 9db55e62b4f1517de28cd14f5aafb17444b48512 
Sync with YCM commit 9db55e62b4f1517de28cd14f5aafb17444b48512 

In particular, port the fix https://github.com/robotology/ycm/pull/276
robotology/idyntree,robotology/idyntree,robotology/idyntree,robotology/idyntree,robotology/idyntree