Fixed exec files

- Renamed
- added required headers
- whitespaces fixes
fixed function signature, includes
fixed order of typedefs, header includes and added compiletime macros
fixed typename
fixed include
fixed macros
fixed includes
Fixes

Fixed:
- whitespace
- typos
- missing function arguments
- includes (moved to header)
- missing prototypes