[PATCH configure] Various test and rake fixes for F17 compatibility