Update sample_app for Linux development
Add guard and spork support for Linux