fixed debian build and changelog
added *FLAGS support