Added architecture detection.
Added platform detection.