Fixing sample code build issue on Linux