Support cmake building i686 and amd64 asm implementation.

 * Use -DASM686=1 to enable building i686 asm.
 * Use -DAMD64=1 to enable building amd64 asm.