Fixed several compiler warnings regarding obsolete methods.