Support Qt 5.3.0

Added macro version checks to support also 5.3.0.
Fix output filename of qmc

Output .js files as .jsc.
Remove file if compilation failed
Resolve base path directory

Resolve the base path directory and use that instead
of relative directory.