Add shared lib support for makefile-built POCO