made two variables static. To avoid conflict with index function present in gcc library.
avoid gcc warning about pointer cast
with gcc 4.7.3, the USB host stack does not work with -O1. Removed optimization setting.
rearranged methods