Fixed compiling as a sub-module.