replace ar with $(AR) for #4
C++/MSVC compatibility, indenting, for #4