core: align stack on a 32bit boundary

Fixes #1267.
Merge pull request #1268 from Kijewski/issue-1267

core: align stack on a 32bit boundary