Compile libcore