A few changes to improve compatibility.

Signed-off-by: retep998 <retep998@verizon.net>