Fix makefile
Fixed casting port to int
Fixed trust path and CONFIGDIR