Updated build scripts
Fixed warnings