Compiler warnings removed and release build working on 2005