core: align stack on a 32bit boundary

Fixes #1267.
this `#endif ` is on its own... Where is it's `if`?