c577af9 add two compile fix patches

Authored and Committed by chkr 13 years ago
    add two compile fix patches