Modify Makefile to support build-plt and dialyze.

Also changed .gitignore to ignore *.plt
Fix type error found by dialyzer in lhttpc_client.erl.