into one dir, simplify modules dirs layout, improved building wrt threads/compiler flags, etc. ok landry@, sebastiap@