Added BUILD_EXAMPLES option in cmake