Add missing header and conditional compile for core player

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>