build libmwaw as shared lib

Change-Id: I3c970cf3d15c2bd0072dccdf34bc3f0dae53c0b8
(cherry picked from commit 79211c1abe382e428611df1b81150106cbcb9197)
build libwps as shared lib

Change-Id: Ic30d54461f799b745d0887b830445f00efeb6faa
(cherry picked from commit f85d10fdf651d131ecb0c3622326b3b076205e80)