Can't work with Location object in FSL
You need to explicitly reference the field service Location object as Schema.Location since just saying Location implicitly refers to the older System.Location class.
You can access FSL Location by using Schema.Location. This worked for me:
for(Schema.Location loc : [SELECT Id,Name FROM Location]) {
System.debug(loc.Name);
}