[aot] Add support for overriding the alignment calculations done by the runtime during AOT. This is needed because the alignment of some types, notable i8/double can be different between the host and the target platform.