tomcrypt_misc.h is ported. Minor fixes in other files, problems were
detected while switching all options on.