Better async compiling and callback on files