still supporting 12.04

Added pre-processor hooks for deprecated api - should build now on 12.04 and 14.04 cleanly.