Changing the makefile and trying some defines to allow conditional compiling.