Fixed a few comilation warnings