Moved backend-specific source code to subdirectories for easier conditional compilation.