Fixes in extconf.rb

This pull request has two purposes:

1. Add g++ 4.8 to the list of newer g++ versions;
2. Apply the patch found in issue #77, as it might be useful for more people.