Several useful hardware check macros and methods are added. Buffer size fix.

For details see description of suggested methods and macros definitions in code.
`-hardwareString` is fixed to obtain buffer size for machine string in recommended way.