Added convenience function for compiling contrib code