Update with multi-platform code.
Remove lib source from example code