build fix, double compile for links