fix pathing issue
add non-reentrant library
add OS extensions
fix whitespace
cleanup unused variables