Turn off optimazation in amctrl.c when using vs2013 as it does not work correct.