Added lib build rule, static and shared libs are now built