POCO fix and flag for static libraries