fix installation of apc