Fix stack pointer; Fix build with optimization; Fix sdramtest to fit 2k