[amazon] Add some build fixes for kernel 2.6.21 and the infineon amazon target.