Build static and dynamic from buildlibs