Adding necessary '-fPIC' flag for executor and scheduler compilation