missing includes in am
fix typo in scalar frexp