Support compilation as static libraries