Fix some implicitly defined functions - import proper headers.