Fix an always-true assert in PT code.
Add the -Wlogical-op switch when building with GCC 4.3 or later.