pios_semaphore: add compile time check for dependencies
pios_semaphore requires either PIOS_INCLUDE_FREERTOS or PIOS_INCLUDE_IRQ to be defined