Attempt to fix the build on gcc 4.6
Disable many of the selftests on gcc 4.6
Disable more selftests on 4.6
Add get attribute TYPE_METHODS to record types