fix enum compiler errors related to js library

@rev goliver@
Merging origin/gtorres/master-pending-libenumfix into master