Merge pull request #1 from DirtYiCE/master

Stack alignment + some random fixes
stack: fix possible stack buffer overflow