Updated building.md with changes required to run make on CentOS and Ubuntu

Exporting the LDFLAGS attribute or including such attributes as a requirement whilst running make ensures that such an operation does not fail.