Move methods that rely on Component to header file. Fixes build problems on linux