Use country for 500px search if city is missing.
Fixed 64-bit architecture warnings