Fail compile if sizeof(struct MAM) != 1024

Reference: http://scaryreasoner.wordpress.com/2009/02/28/checking-sizeof-at-compile-time/

Signed-off-by: Mark Harvey <markh794@gmail.com>