Change default optimization level to 3.
remove unused header.
Remove PATH_MAX and use own define.