Move sources to backend
Correct path to common headers.
Update makefiles.