Move installation path definitions into a separate header file

This is to recompile only few files when installation paths are changed;
currently all files are recompiled.

Fix issue #324.