Support cmake building i686 and amd64 asm implementation.

Support cmake building i686 and amd64 asm on Linux and Windows.

* Use -DASM686=1 to enable building i686 asm.
* Use -DAMD64=1 to enable building amd64 asm.