fix platform/common_pragmas bug, fix linker errors

+further reduce unnecessary errorcodes C++. completely depends on C
code now