Added an if-def around method calls that were specific to files from a
particular subspec.
Merge pull request #10 from nmccann/bug-fix/add-if-defs

Added an if-def around method calls that were specific a sub spec