Handle -imacros compiler arguments

Change-Id: I7893ac5b8f183eff5b528fd8a89f8040cd0e862c