core: align stack on a 32bit boundary

Fixes #1267.
Maybe https://graphics.stanford.edu/~seander/bithacks.html#ModulusDivisionEasy (or one of the following ones) is helpful.