moved compilation to pre_install