samples: Fixes for Linux