Fix spec_main dependency and remove obsoleted deps