fix #658 use target names directly instead of LOCATION
fix #667 flags list used as string
enable function and data sections
fix incorrect library search paths
fix for llvm trunk
Merge pull request #686 from Trass3r/master

towards Win64