add env files for FreeBSD && fixed build error with x64 Qt on Windows

1. add env files for FreeBSD 
2. fixed building & running on FreeBSD
3. fixed build error with x64 Qt on Windows