Fixed all make errors. Not tested on Bone.