Fixed linux build.
Added a sample.