fixed the building errors and warnings in QuickStart samples