sample-char-dir: add application for sample char driver in library style

This patch adds library style application to sample driver. Insteading
using ioctl() in actual application, shared library will be written
to hide ioctl().

Then actual application dynamically links with shared libary to access
driver.

Signed-off-by: Jeyaraman Rangasamy <jeyaraman.rangasamy@lge.com>