Fix libtool archive file generation

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