Added warn compile options. Fixed compile warnings.