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

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