Use simply-expanding variables for build flags
Reorder build flags variables
Add support for setting custom LDFLAGS
Add some hardening to the debian build