Remove mpd/thermald and add compiler optimization