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>
Merge pull request #2 from cmatsuoka/master

Set g++ flags and link examples against library before installing