configure: added the test for bz2 that is optional in almost and so
should be checked before almost in order to link it correctly.