core: align stack on a 32bit boundary

Fixes #1267.
Hm, can you think of a solution without modulo?