fixing some warnings that happen in VS2005