Merge pull request #1 from cmatsuoka/master

Add cmake makefiles
Add g++-specific compiler flags

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Link examples against uninstalled library

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>