Some crash fix and skip some tests when g++ isn't available.