postgresql: fix TCL support on 10.7 and 10.8