Update dependences to be compatible with sf 2.3+