Support to only build netgen for lib usage.