Add compile flag for executable extensions thereby fixing build system. Might also be some crash fixes in here, I just realized I haven't committed these changes.
Upstream code for localizing filetype labels!