Fix compilation of RF12demo on OS X

This commit closes #54
Merge pull request #55 from hollie/fix_RF12demo_compilation

Fix compilation of RF12demo on OS X