Fix defines and compile error for display and media