Fixed build rule file for proper MSVC release build

- Add /ENTRY:mainCRTStartup linker flag for MSVC release build
- Move /DEBUG linker flag to debug build only