make libs suitable for external project