Since at least version 0.1.12a, there is a -T option, it's just the manual page on the website is out of date.
-T FILE reference sequence file (force -S) [null]
This forces the -S flag (making it assume sam input), meaning that that the command should work.
What is the error? SAM header is present is not an error message; it's just an informational status. Maybe it's working fine?
There might be several issues going on here. For the sam > bam step use the -bS flag. This tells samtools you are inputing a SAM file and want a BAM file.