Make you sure you are using 64 bit compiler. I managed to recreate the problem but it seems like it doesn't work on 32bit also use directly bcdedit without any full path. It's like a drivers. x86 driver doesn't work on x64 etc. Also if you are using 32 bit then use 32 bit compiler.