fix compiler warnings in sample proj