Fix build on Windows
Fix warning about importing methods pkg