Fixes #1824 - Correctly detect oceans

Previously buildings which should only be buildable on OceanBorders did
not work correctly. Some lakes could be interpreted as ocean.

Thanks to @otinn for coming up with a good idea how to check it
properly.