Added options to yarp build.

Added:
- shared library support (on by default): to build with static libray pass --without-shared
- build with rpath support (off by default): to build with rpath pass --enable-rpath