completed first version of libbam free sam file reading
fix compilation for libbam based code