Added read-tlv procedure to read all TLVs from input port.
Applied patches from Stephen Lewis.
Added CPU bit size cond features to detect (for FFI)
Fixed compile error on MSVC
Fixed invalid preprocessor