Allow user to add flags to CFLAGS and LDFLAGS

Last PR turned nightmarish the moment I amended a pushed commit. Never going to do that again. Sorry about that.