automake cleanup: moved tools, created makefile-env, renamed inttypes.h

- VTA is unsupported in gcc < 4.5, so check compiler support for it.
- Created a makefile-env with basic automake init.
- Moved various tools from src to src/tools.
- Moved various tests from src to src/test.
- In "includes", inttypes.h was cluttering the system's one. This caused
  random build errors on some systems/in some conditions. Renaming it.
- Add emergency defs of PRI*64 headers when int_types.h does not define
  them (which, unfortunately, can happen on some systems).
- Moved hobject to common (it's used by more libs)
- Moved C-files away from include to common

Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>