Build static and shared libs