If you put your cursor in the right location, sometimes you'll see the build wall prompt even though it looks like you can't build a wall there. In the case of boats, this allows you to place walls on the ocean.
Fixed