Refactor a bit.

1. Use the safe mkstemp() instead of the unsafe tempnam(), which cause compiling warning.
2. Use the utilities in slang_rs_reflect_utils to compute the temp bc file name.

Change-Id: I641f75000f787c3cc5fc950e5bf2a8c87773447d
1 file changed