Removed unneeded things
Added hardening and --as-needed flags to d/rules