Merge pull request #216 from bastih/master

Fix incorrect passing of debug/release flags
Merge pull request #217 from bastih/master

Remove .bin extension from binaries
Clean up .gitignore
Add initial support for link time optimization builds