implement ctrl_routine for headless devices, added restrictive gcc flags, fixed gcc warnings, added CONFIG_MPLAYER