Homeless man facing burglary charges was 'trying to stay warm'