fix compiler warnings by "gcc -Wall -O2"
for md5-fix see http://lists.denx.de/pipermail/u-boot/2012-April/123364.html
fix clang warning
Merge pull request #325 from cgzones/fix_for_makefiles

fixing compiler warnings with "-O2 -Wall"