Added code generation hacks (e.g. not to multiply by one) and final
compilation to mex_weigting_filter functions for use in metcore