Add support to build with debug symbols