I have successfully compiled a buch of ebooks, and think is it safe to mark the the ebook class as "~amd64", if not not "amd64"
Added, thanks!