Fix libtool archive file generation

Change WRITE to APPEND mode when writing lines into .la file.
"#Generated by" line is required by libtool.