Added conditional compilation for avs_commons components

Fixes #7